package com.zxn.project.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserGroupRel {
    @TableId(type = IdType.AUTO)
    private Long id;
    Long userId;
    Long groupId;

    public UserGroupRel(Long userId, Long groupId) {
        this.userId = userId;
        this.groupId = groupId;
    }
}
